
var seri = require("./seri")

// var comtb = {name: "lindx", age: 12, bool: false, number: 19.22, array: [12, 344, 7.56, "ggg"], subobj: {parent: "this p", like: "book"}, nextobj: []}
var comtb = {obj: {what: "122", bool: true, need: 10000.99, num: -1200000}}
var buffer = seri.pack(comtb)

var result = seri.unpack(buffer)
console.log(result)